package com.ticket.sass.admin.dto.input.member;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author ywb
 * @date 2024-03-19 11:35
 */
@Data
@ApiModel
public class MemberCardRechargeAddInput {
    @NotBlank(message = "封面图不能为空")
    @ApiModelProperty(value = "封面图")
    private String cover;
    
    @DecimalMax(value = "999999.99", message = "充值金额不能超过999999.99")
    @DecimalMin(value = "0.0", message = "充值金额不能小于0.0")
    @ApiModelProperty(value = "充值金额")
    private BigDecimal amount;
    
    @DecimalMax(value = "999999.99", message = "赠送金额不能超过999999.99")
    @DecimalMin(value = "0.0", message = "赠送金额不能小于0.0")
    @ApiModelProperty(value = "赠送金额")
    private BigDecimal giftAmount;
    
    @ApiModelProperty(value = "是否启用")
    private Boolean enable = false;
    
    @ApiModelProperty(value = "促销文案")
    private String tips;
    
    @NotNull(message = "有效开始时间不能为空")
    @ApiModelProperty(value = "有效开始时间")
    private LocalDate validStartTime;
    
    @NotNull(message = "有效结束时间不能为空")
    @ApiModelProperty(value = "有效结束时间")
    private LocalDate validEndTime;
}
